<?php

class Manage_Admin_Navigation_Item_Remove extends Action {

  public function doGet() {
    $this->_norender = true;
    $nav_id =  (int)$this->getParam('nav');
    $id =  (int)$this->getParam('id');
    $ds= new Manage_DataService_Navigation();
    $ds->removeNode($id);
    Url::redirect('admin/manage/navigation', array('item'=>$nav_id));
  }

}